import request from '@/utils/request'

export function tree() {
  return request({
    url: '/sys/sys-dept/tree',
    method: 'get'
  })
}

export function list(data) {
  return request({
    url: '/sys/sys-dept/list',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/sys/sys-dept/save',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/sys/sys-dept/update',
    method: 'put',
    data
  })
}

export function find(id) {
  return request({
    url: '/sys/sys-dept/find/' + id,
    method: 'get'
  })
}

export function remove(id) {
  return request({
    url: '/sys/sys-dept/delete/' + id,
    method: 'delete'
  })
}

export function removeIds(data) {
  return request({
    url: '/sys/sys-dept/deleteIds',
    method: 'delete',
    data
  })
}

